export const getUserList = (fliter, pageBuilder) => {
  return {
    'code': 1,
    'data': {
      'content': [{
        'id': 1,
        'userName': '201541404113',
        'name': '温予新',
        'identity': 'Teacher',
        'department': '法律与社会工作学院(知识产权学院)',
        'tel': '13526458962',
        'email': '642573157@dgut.com',
        'enabled': false,
        'signUpTime': '2015-09-08 00:00:00',
        'lastSignInTime': '2015-09-08 00:00:00',
        'roles': [{
          id: 1,
          name: 'ROLE_USER'
        }, {
          id: 2,
          name: 'ROLE_STUDENT'
        }, {
          id: 3,
          name: 'ROLE_STUDENT_ASSISTANT'
        }, {
          id: 4,
          name: 'ROLE_TEACHER'
        }, {
          id: 5,
          name: 'ROLE_INSTITUTE_ADMIN'
        }, {
          id: 6,
          name: 'ROLE_SCHOOL_ADMIN'
        }, {
          id: 7,
          name: 'ROLE_ROOT'
        }]
      }, {
        'id': 1,
        'userName': 'wpj0001234',
        'name': '欧阳传福',
        'identity': 'Student',
        'department': '网络空间安全学院',
        'tel': null,
        'email': null,
        'enabled': true,
        'signUpTime': '2015-09-08 00:00:00',
        'lastSignInTime': '2015-09-08 00:00:00',
        'roles': [{
          id: 1,
          name: 'ROLE_USER'
        }, {
          id: 2,
          name: 'ROLE_STUDENT'
        }, {
          id: 3,
          name: 'ROLE_STUDENT_ASSISTANT'
        }, {
          id: 5,
          name: 'ROLE_INSTITUTE_ADMIN'
        }]
      }, {
        'id': 1,
        'userName': 'wpj0001234',
        'name': '温予新',
        'identity': 'Teacher',
        'department': '网络空间安全学院',
        'tel': null,
        'email': null,
        'enabled': true,
        'signUpTime': '2015-09-08 00:00:00',
        'lastSignInTime': '2015-09-08 00:00:00',
        'roles': [{
          id: 1,
          name: 'ROLE_USER'
        }, {
          id: 4,
          name: 'ROLE_TEACHER'
        }, {
          id: 5,
          name: 'ROLE_INSTITUTE_ADMIN'
        }, {
          id: 6,
          name: 'ROLE_SCHOOL_ADMIN'
        }]
      }, {
        'id': 1,
        'userName': 'wpj0001234',
        'name': '温予新',
        'identity': 'Teacher',
        'department': '网络空间安全学院',
        'tel': null,
        'email': null,
        'enabled': true,
        'signUpTime': '2015-09-08 00:00:00',
        'lastSignInTime': '2015-09-08 00:00:00',
        'roles': [{
          id: 1,
          name: 'ROLE_USER'
        }]
      }, {
        'id': 1,
        'userName': 'wpj0001234',
        'name': '温予新',
        'identity': 'Teacher',
        'department': '网络空间安全学院',
        'tel': null,
        'email': null,
        'enabled': false,
        'signUpTime': '2015-09-08 00:00:00',
        'lastSignInTime': '2015-09-08 00:00:00',
        'roles': [{
          id: 1,
          name: 'ROLE_USER'
        }, {
          id: 4,
          name: 'ROLE_TEACHER'
        }, {
          id: 6,
          name: 'ROLE_SCHOOL_ADMIN'
        }]
      }, {
        'id': 1,
        'userName': 'wpj0001234',
        'name': '温予新',
        'identity': 'Teacher',
        'department': '网络空间安全学院',
        'tel': null,
        'email': null,
        'enabled': true,
        'signUpTime': '2015-09-08 00:00:00',
        'lastSignInTime': '2015-09-08 00:00:00',
        'roles': [{
          id: 1,
          name: 'ROLE_USER'
        }, {
          id: 4,
          name: 'ROLE_STUDENT'
        }]
      }, {
        'id': 1,
        'userName': 'wpj0001234',
        'name': '温予新',
        'identity': 'Teacher',
        'department': '网络空间安全学院',
        'tel': null,
        'email': null,
        'enabled': false,
        'signUpTime': '2015-09-08 00:00:00',
        'lastSignInTime': '2015-09-08 00:00:00',
        'roles': [{
          id: 1,
          name: 'ROLE_USER'
        }, {
          id: 4,
          name: 'ROLE_TEACHER'
        }, {
          id: 5,
          name: 'ROLE_INSTITUTE_ADMIN'
        }]
      }, {
        'id': 1,
        'userName': 'wpj0001234',
        'name': '温予新',
        'identity': 'Teacher',
        'department': '网络空间安全学院',
        'tel': null,
        'email': null,
        'enabled': true,
        'signUpTime': '2015-09-08 00:00:00',
        'lastSignInTime': '2015-09-08 00:00:00',
        'roles': [{
          id: 1,
          name: 'ROLE_USER'
        }, {
          id: 4,
          name: 'ROLE_TEACHER'
        }]
      }],
      'pageable': {
        'sort': {
          'unsorted': false,
          'sorted': true,
          'empty': false
        },
        'offset': 0,
        'pageSize': 10,
        'pageNumber': 0,
        'paged': true,
        'unpaged': false
      },
      'totalElements': 200,
      'totalPages': 1,
      'last': true,
      'size': 10,
      'number': 0,
      'sort': {
        'unsorted': false,
        'sorted': true,
        'empty': false
      },
      'numberOfElements': 1,
      'first': true,
      'empty': false
    }
  }
}

export const getUserById = (req) => {
  return {
    code: 1,
    data: {
      'id': 1,
      'code': 'wpj0001234',
      'name': '温予新',
      'identity': 'Teacher',
      'department': '网络空间安全学院',
      'tel': null,
      'email': null,
      'enabled': true,
      'roles': ['ROLE_USER', 'ROLE_INSTITUTE_ADMIN', 'ROLE_SCHOOL_ADMIN']
    },
    info: ''
  }
}

export const userSave = () => {
  return {
    code: 1
  }
}

export const getRolesType = () => {
  return {
    code: 1,
    data: {
      'ROLE_ROOT': '系统管理员',
      'ROLE_SCHOOL_ADMIN': '校级管理员',
      'ROLE_INSTITUTE_ADMIN': '学院管理员',
      'ROLE_TEACHER': '教师',
      'ROLE_STUDENT_ASSISTANT': '学生助理',
      'ROLE_USER': '普通用户'
    },
    info: ''
  }
}
